﻿@if (Request.IsAuthenticated)
{
    @Html.AntiForgeryToken()

    <ul class="nav navbar-nav navbar-right">
        <li>
            @Html.ActionLink(@User.Identity.Name, "Index", "User", new { area = "" }, null)
        </li>
        <li>
            @Html.ActionLink("Log out", "LogOff", "Account", new { area = "" }, null)
        </li>
    </ul>
}
else
{
    <ul class="nav navbar-nav navbar-right">
        <li>@Html.ActionLink("Register", "Register", "Account", new { area = "" }, null)</li>
        <li>@Html.ActionLink("Log in", "Login", "Account", new { area = "" }, null)</li>
    </ul>
}
